package com.zzyl.nursing.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 护理任务执行DTO
 */
@Data
@ApiModel("护理任务执行DTO")
public class NursingTaskExecuteDto {

    /**
     * 护理任务ID
     */
    @NotNull(message = "护理任务ID不能为空")
    @ApiModelProperty(value = "护理任务ID", required = true)
    private Long taskId;

    /**
     * 执行记录
     */
    @NotBlank(message = "执行记录不能为空")
    @ApiModelProperty(value = "执行记录", required = true)
    private String mark;

    /**
     * 预计服务时间
     */
    @NotNull(message = "执行时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    @ApiModelProperty(value = "执行时间", required = true)
    private LocalDateTime estimatedServerTime;

    /**
     * 任务图片
     */
    @ApiModelProperty(value = "任务图片")
    private String taskImage;
}
